﻿@model DBTramite.BussinesEntities.T_Emisor

@{
    ViewBag.Title = "EditNatural";
}

<h2>Editar Persona Natural</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Persona Natural</legend>

        <div class="editor-label">
            @Html.HiddenFor(model => model.codemisor)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.codemisor)
            @Html.ValidationMessageFor(model => model.codemisor)
        </div>

        <div class="editor-label">
            Tipo de Persona:
            @*@Html.LabelFor(model => model.tipopersona)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.tipopersona)
            @Html.ValidationMessageFor(model => model.tipopersona)
        </div>

        <div class="editor-label">
            Nombre:
            @*@Html.LabelFor(model => model.nombre)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombre)
            @Html.ValidationMessageFor(model => model.nombre)
        </div>

        <div class="editor-label">
            Apellido Paterno:
            @*@Html.LabelFor(model => model.apepaterno)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apepaterno)
            @Html.ValidationMessageFor(model => model.apepaterno)
        </div>

        <div class="editor-label">
            Apellido Materno:
            @*@Html.LabelFor(model => model.apematerno)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apematerno)
            @Html.ValidationMessageFor(model => model.apematerno)
        </div>

        <div class="editor-label">
            DNI:
            @*@Html.LabelFor(model => model.dni)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dni)
            @Html.ValidationMessageFor(model => model.dni)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.ruc)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.ruc)
            @Html.ValidationMessageFor(model => model.ruc)
        </div>

         <div class="editor-label">
             Dirección:
            @*@Html.LabelFor(model => model.direccion)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.direccion)
            @Html.ValidationMessageFor(model => model.direccion)
        </div>

        <div class="editor-label">
            Teléfono:
           @* @Html.LabelFor(model => model.telefono)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.telefono)
            @Html.ValidationMessageFor(model => model.telefono)
        </div>

        <div class="editor-label">
            Correo Electronico:
            @*@Html.LabelFor(model => model.email)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.id_dep)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.id_dep)
            @Html.ValidationMessageFor(model => model.id_dep)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.id_old)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.id_old)
            @Html.ValidationMessageFor(model => model.id_old)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.codusuario)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.codusuario)
            @Html.ValidationMessageFor(model => model.codusuario)
        </div>

        <p>
            <input type="submit" name="btnBuscar" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "BusquedaNatural")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
